﻿<%@ Page Title="" Language="C#" MasterPageFile="~/AdminCP/Layouts/Admin.Master" AutoEventWireup="true"
    CodeBehind="MyBonus.aspx.cs" Inherits="MLM.AdminCP.Pages.MyBonus" meta:resourcekey="PageResource1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Label ID="MyBonus" runat="server" Text=" My Bonus" meta:resourcekey="MyBonusResource1"></asp:Label>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <h3>
        <asp:Label ID="Filter" runat="server" Text="Filter" meta:resourcekey="FilterResource1"></asp:Label>
    </h3>
    <div>
        <asp:Label ID="FromYear" runat="server" Text="From Year:" meta:resourcekey="FromYearResource1"></asp:Label>
        <telerik:RadComboBox runat="server" ID="FromYearCbb" meta:resourcekey="FromYearCbbResource1" />
        <asp:Label ID="ToYear" Text="To Year:" runat="server" meta:resourcekey="ToYearResource1"></asp:Label>
        <telerik:RadComboBox runat="server" ID="ToYearCbb" meta:resourcekey="ToYearCbbResource1" />
        <asp:Button runat="server" ID="CalculateBonusBtn" Text="View bonus" meta:resourcekey="CalculateBonusBtnResource1" /><br />
        <br />
        <asp:Label ID="cut" runat="server" Text="(To Year is demo, in fact, max = current year)"
            meta:resourcekey="cutResource1"></asp:Label>
    </div>
    <h3>
        <asp:Label ID="CarrierBonus" runat="server" Text="Carrier Bonus" meta:resourcekey="CarrierBonusResource1"></asp:Label>
    </h3>
    <div>
        <table style="width: 100%" class="MLMInfoTable BonusCalculatorTable" cellpadding="0"
            cellspacing="0">
            <tr>
                <th>
                    &nbsp;
                </th>
                <th>
                    1
                </th>
                <th>
                    2
                </th>
                <th>
                    3
                </th>
                <th>
                    4
                </th>
                <th>
                    5
                </th>
                <th>
                    6
                </th>
                <th>
                    7
                </th>
                <th>
                    8
                </th>
                <th>
                    9
                </th>
                <th>
                    10
                </th>
                <th>
                    11
                </th>
                <th>
                    12
                </th>
            </tr>
            <asp:Repeater runat="server" ID="CarrierBonusByYearRpt">
                <HeaderTemplate>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td>
                            <%#Eval("Year") %>
                        </td>
                        <asp:Repeater ID="Repeater1" runat="server" DataSource='<%# Eval("Bonus") %>'>
                            <ItemTemplate>
                                <td>
                                    <span>
                                        <%#Eval("Bonus") %>%</span>
                                </td>
                            </ItemTemplate>
                        </asp:Repeater>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                </FooterTemplate>
            </asp:Repeater>
        </table>
    </div>
    <h3>
        <asp:Label ID="lbDeepnesBonus" runat="server" Text="Deepnes Bonus" 
            meta:resourcekey="lbDeepnesBonusResource1"></asp:Label></h3>
    <div>
    </div>
    <h3>
    <asp:Label ID="lbYearBonus" runat="server" Text="Year Bonus" 
            meta:resourcekey="lbYearBonusResource1"></asp:Label>
        </h3>
    <div>
        <asp:Repeater runat="server" ID="YearBonusRpt">
            <HeaderTemplate>
                <table class="MLMInfoTable BonusCalculatorTable" cellpadding="0" cellspacing="0">
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td style="background: #F1F1F1; width: 100px">
                        <%#Eval("Year") %>
                    </td>
                    <td>
                        <span>
                            <%#Eval("Bonus") %>%</span>
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
    </div>
</asp:Content>
